package com.monkeyk.sos.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import com.monkeyk.sos.domain.model.ResInterface;
import com.monkeyk.sos.service.ResInterfaceService;

@Service("resInterfaceService")
public class ResInterfaceImpService implements ResInterfaceService {
    
    @Autowired
    JdbcTemplate jdbcTemplate;

  
   
    /**
     * 通过资源ID删除 相关的 接口
     * @param rsid
     */
    public void deleteResInterfaceByRSID(String  name) {
	String sql = "delete from resource_interface where resources_id="+name;
	jdbcTemplate.execute(sql);
    }
    
    
   public void addResInterface(ResInterface ri) {
	
    }

    public void deleteResInterfaceByID(Long id) {
	
    }

    public void updateResInterface(ResInterface ri) {
	
    }

    public List<ResInterface> getAllResInterfaceList() {
	return null;
    }

    public List<ResInterface> getSelectedResInterface(ResInterface ri) {
	return null;
    }
    
    @Override
    public List<ResInterface> selectResInterfaceByID(Long id) {
	// TODO Auto-generated method stub
	return null;
    }


}